from name_function import get_formatted_name

print('Print "q" at any time to quit.')
while True:
    first = input('enter your first name:')
    if 'q' == first:
        break
    last = input('enter your last name:')
    if 'q' == last:
        break

    formatted_name = get_formatted_name(first,last)
    print('\tNeatly formatted name:' + formatted_name + '.')